package com.jader.beans;

import java.io.Serializable;
import java.util.List;

public class LunTan_All_Bens implements Serializable {
	private static final long serialVersionUID = 1L;
	long tieziId;
	String date;// 发帖时间
	String theme;// 主题
	String content;// 内容
	int praiseNumber;// 赞的次数
	int commentNumber;// 评论次数
	int userid;// 用户ID
	List<String> list;
	int fabu_dongtai;
	User userBens;

	public LunTan_All_Bens() {
		super();
	}

	public LunTan_All_Bens(long tieziId, String date, String theme,
			String content, int praiseNumber, int commentNumber, int userid,
			List<String> list, int fabu_dongtai, User userBens) {
		super();
		this.tieziId = tieziId;
		this.date = date;
		this.theme = theme;
		this.content = content;
		this.praiseNumber = praiseNumber;
		this.commentNumber = commentNumber;
		this.userid = userid;
		this.list = list;
		this.fabu_dongtai = fabu_dongtai;
		this.userBens = userBens;
	}

	public User getUserBens() {
		return userBens;
	}

	public void setUserBens(User userBens) {
		this.userBens = userBens;
	}

	public long getTieziId() {
		return tieziId;
	}

	public void setTieziId(long tieziId) {
		this.tieziId = tieziId;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getPraiseNumber() {
		return praiseNumber;
	}

	public void setPraiseNumber(int praiseNumber) {
		this.praiseNumber = praiseNumber;
	}

	public int getCommentNumber() {
		return commentNumber;
	}

	public void setCommentNumber(int commentNumber) {
		this.commentNumber = commentNumber;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public List<String> getList() {
		return list;
	}

	public void setList(List<String> list) {
		this.list = list;
	}

	public int getFabu_dongtai() {
		return fabu_dongtai;
	}

	public void setFabu_dongtai(int fabu_dongtai) {
		this.fabu_dongtai = fabu_dongtai;
	}

	public LunTan_All_Bens(int praiseNumber) {
		super();
		this.praiseNumber = praiseNumber;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (tieziId ^ (tieziId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LunTan_All_Bens other = (LunTan_All_Bens) obj;
		if (tieziId != other.tieziId)
			return false;
		return true;
	}

}
